/**
 * Copyright (c) iwindplus Technologies Co., Ltd.2024-2030, All rights reserved.
 */

package com.iwindplus.boot.operate.domain.property;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 操作配置相关属性.
 *
 * @author zengdegui
 * @since 2019/6/12
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ConfigurationProperties(prefix = "operate.valid")
public class OperateValidProperty {

    /**
     * 是否启用验证.
     */
    @Builder.Default
    private Boolean enabled = Boolean.TRUE;

    /**
     * 是否开启GA校验.
     */
    @Builder.Default
    private Boolean enabledGa = Boolean.TRUE;

    /**
     * 是否开启邮箱校验.
     */
    @Builder.Default
    private Boolean enabledMail = Boolean.FALSE;

    /**
     * 是否开启短信校验.
     */
    @Builder.Default
    private Boolean enabledSms = Boolean.FALSE;
}
